export default class Customers {
  static list (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/customer', 'get', params, axiosOption, httpOption);
  }
  static add (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/customer', 'post', params, axiosOption, httpOption);
  }
  static update (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/customer/update', 'post', params, axiosOption, httpOption);
  }
  static detail (sender, params, axiosOption, httpOption) {
    return sender.doUrl(`admin/customer/${params}`, 'get', axiosOption, httpOption);
  }
  static delete (sender, params, axiosOption, httpOption) {
    return sender.doUrl(`admin/customer/delete/${params}`, 'get', axiosOption, httpOption);
  }
  static deletes (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/customer/delete', 'post', params, axiosOption, httpOption);
  }
  static lists (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/customer/list', 'get', params, axiosOption, httpOption);
  }
  static hierarchy (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/customer/customerHierarchy', 'get', params, axiosOption, httpOption);
  }
}
